#include("../layout.html")
#@layout("添加用户")

#define body()
<h1>添加用户</h1>

<div class="layui-fluid">
	<p>新建用户，并将用户加入此站点。</p>
	<form class="layui-form" action="/admin/user/save" method="post">
		<div class="layui-form-item">
    		<label class="layui-form-label">用户名（必填）</label>
    		<div class="layui-input-block" style="width:400px;">
    			<input type="text" name="user_login" id="user_login" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">电子邮件（必填）</label>
    		<div class="layui-input-block" style="width:400px;">
    			<input type="text" name="email" id="email" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">名字</label>
    		<div class="layui-input-block" style="width:400px;">
    			<input type="text" name="first_name" id="first_name" placeholder="" autocomplete="off" class="layui-input">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">姓氏</label>
    		<div class="layui-input-block" style="width:400px;">
    			<input type="text" name="last_name" id="last_name" placeholder="" autocomplete="off" class="layui-input">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">站点</label>
    		<div class="layui-input-block" style="width:400px;">
    			<input type="text" name="url" id="url" placeholder="" autocomplete="off" class="layui-input">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">密码</label>
    		<div class="layui-input-block" style="width:400px;">
    			<input type="password" name="user_pass" id="user_pass" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">发送用户通知</label>
    		<div class="layui-input-block">
    			<input type="checkbox" name="send_user_notification" id="send_user_notification" value="true" checked="checked" title="向新用户发送有关账户详情的电子邮件。" lay-skin="primary">
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<label class="layui-form-label">角色</label>
    		<div class="layui-input-block" style="width:100px;">
    			<select name="role" id="role">
					<option selected="selected" value="subscriber">订阅者</option>
					<option value="contributor">投稿者</option>
					<option value="author">作者</option>
					<option value="editor">编辑</option>
					<option value="administrator">管理员</option>			
				</select>
   	 		</div>
    	</div>
    	<div class="layui-form-item">
    		<button type="submit" lay-submit lay-filter="*" class="layui-btn layui-btn-sm">添加用户</button>
    	</div>
	</form>
</div>
#end

#define foot()
<script>
layui.cache.page = 'user';
</script>
#end